#ifndef __KEY_H
#define __KEY_H
#include<STC15.H>

#define KEY_BEGIN 0
#define KEY_CHECK 1
#define KEY_PRESS 2

#define KEY1_SHORT 1
#define KEY1_LONG  2
#define KEY2_SHORT 3
#define KEY2_LONG  4
#define KEY1 P33
#define KEY2 P32
#define SHORT_COUNT 20
extern uint8_t key;
void key_scan(void);

#endif